package com.sgb.kjwl.model.entity;

import android.text.TextUtils;

import com.contrarywind.interfaces.IPickerViewData;

public class CarInfo implements IPickerViewData {


    /**
     * carNumber : 川AE6866
     * no : 20200827238958
     * carLenNo : 202008137623141
     * weight : 20
     * carTypeNo : 202005207710348
     */

    private String carNumber;
    private String no;
    private String carLenNo;
    private double weight;
    private String carTypeNo;
    private String carTypeName="";
    private String carLenName="";
    private String carImage;
    private String provinceName;
    private String detailAddress;

    //车辆所在市name
    private String cityName;
    //车辆所在区name
    private String districtName;
    private String distance;
    private int type;//1 自营 2 挂靠
    //是否完善
    private int isComplete;

    private Integer isDump;
    //高栏
    private String heightHurdle;
    private String id;

    public String getDetailAddress() {
        if (detailAddress == null)
            return "";
        return detailAddress;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCarImage() {
        return carImage;
    }

    public void setCarImage(String carImage) {
        this.carImage = carImage;
    }

    public String getCarTypeName() {
        return carTypeName;
    }

    public void setCarTypeName(String carTypeName) {
        this.carTypeName = carTypeName;
    }

    public String getCarLenName() {
        return carLenName;
    }

    public void setCarLenName(String carLenName) {
        this.carLenName = carLenName;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getCarLenNo() {
        return carLenNo;
    }

    public void setCarLenNo(String carLenNo) {
        this.carLenNo = carLenNo;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public String getCarTypeNo() {
        return carTypeNo;
    }

    public void setCarTypeNo(String carTypeNo) {
        this.carTypeNo = carTypeNo;
    }

    public int getIsComplete() {
        return isComplete;
    }

    public void setIsComplete(int isComplete) {
        this.isComplete = isComplete;
    }

    public Integer getIsDump() {
        return isDump;
    }

    public void setIsDump(Integer isDump) {
        this.isDump = isDump;
    }

    public String getHeightHurdle() {
        return heightHurdle;
    }

    public void setHeightHurdle(String heightHurdle) {
        this.heightHurdle = heightHurdle;
    }

    @Override
    public String getPickerViewText() {
        if (!TextUtils.isEmpty(carLenName) && !TextUtils.isEmpty(carTypeName)) {
            return String.format("%s(长%s %s)", carNumber, carLenName, carTypeName);
        } else {
            return String.format("%s", carNumber);
        }
    }

    public String getProvinceName() {
        if (provinceName == null)
            return "";
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        if (cityName == null)
            return "";
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getDistrictName() {
        if (districtName == null)
            return "";
        return districtName;
    }

    public void setDistrictName(String districtName) {
        this.districtName = districtName;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}
